#ifndef __INFRARE_H
#define __INFRARE_H
#include "sys.h"

#define     GPIO_INFRARE       GPIOB
#define     PIN_INFRARE        GPIO_PIN_5
#define     RCC_INIT_INFRARE() __HAL_RCC_GPIOB_CLK_ENABLE()
#define     INFRARE             HAL_GPIO_ReadPin(GPIO_INFRARE, PIN_INFRARE)


extern uint32_t infrare_counter;

void infrare_init(void);

#endif
